var messageId = ""
var res = ""


layui.use(['form', 'admin', 'ax', 'laydate', 'upload', 'formSelects', 'xmSelect', 'func'], function () {
    var $ = layui.jquery;
    var $ax = layui.ax;
    var form = layui.form;
    var admin = layui.admin;
    var xmSelect = layui.xmSelect
    var func = layui.func;

    messageId = sessionStorage.getItem("messageId")
    sessionStorage.clear()

    $.ajax(Feng.ctxPath + '/data/selectByList', {
        async: false,
        data: {
            messageId: messageId,
        },
        success: function (obj) {
            res = obj;
            // console.log(res)
        }
    })

    var data = res.data[0]

    $("#fileName").val(data.file_name)
    $("#remark").val(data.remark)

    $("#fileDownload").click(function () {
        window.location = Feng.ctxPath + '/data/downloadFile?messageId=' + messageId
    })


});